package com.itheima.attendance.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.itheima.attendance.pojo.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author qiankaofei
 * @version 1.0
 * @date 2020/12/10 21:34
 * 考勤设置实体类
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("atte_attendance_config")
public class AttendanceConfig extends BaseEntity implements Serializable {

    private String id;

    private String companyId;

    @NotBlank(message = "部门ID不能为空")
    private String departmentId;

    @NotNull(message = "上午上班时间不能为空")
    private String morningStartTime;

    @NotNull(message = "上午下班时间不能为空")
    private String morningEndTime;

    @NotNull(message = "下午上班时间不能为空")
    private String afternoonStartTime;

    @NotNull(message = "下午下班时间不能为空")
    private String afternoonEndTime;

}
